import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import path from 'path'
import AutoImport from 'unplugin-auto-import/vite'
// https://vitejs.dev/config/
export default defineConfig({
  plugins: [
    vue(),
    AutoImport({
      imports: ['vue', 'vue-router']
    })
  ],
  build: {
    assetsInclude: ['**/*.JPG'],
    // 其他构建配置...
  },
  resolve: {
    alias: {
      '@': path.resolve(__dirname, 'src') // 配置@符号指向src目录
    },
    extensions: ['.mjs', '.js', '.ts', '.jsx', '.tsx', '.json', '.vue']
  },
  // server: {
  //   port: 80,
  //   host: true,
  //   open: true,
  //   proxy: {

  //     '/api': {

  //       target: 'http://10.16.73.1:3000',
  //       // changeOrigin: true,
  //       rewrite: (p) => p.replace(/^\/test-weekly-screen-api/, '')
  //     },

  //   }
  // },
})
